import parsel
import requests

url = 'https://nba.hupu.com/stats/players'
headers = {
    'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'
}

reponses = requests.get(url=url,headers=headers)
selectors = parsel.Selector(reponses.text)

href = selectors.css('.left a::attr(href)').getall()
for link in  href:
    html_data = requests.get(url=link,headers=headers)
    selectors_1 =  parsel.Selector(html_data.text)
    name = selectors_1.css('.team_data  h2::text').get().replace('\n','')
    print(name)